function [f s e v] = midi2fse(midi,channel);
    info=midiInfo(midi,0);
    size=0;
    for k=1:length(info)
       if info(k,1)==channel;
           size=size+1;
       end
    end
    f=zeros(size,1);
    v=zeros(size,2);
    s=zeros(size,1);
    e=zeros(size,1);
    
    count=0;
    
    for k=1:length(info)
        if info(k,1)==channel;
            count=count+1;
            f(count)=info(k,3);
            v(count)=info(k,4);
            s(count)=info(k,5);
            e(count)=info(k,6);
            
        end
    end
    
end